﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;

namespace webjies
{
    [DataContract]
    public class JieNode
    {
        [DataMember]
        public string ID
        {
            get;
            set;
        }

        [DataMember]
        public string Title
        {
            get;
            set;
        }

        [DataMember]
        public string URL
        {
            get;
            set;
        }

        [DataMember]
        public int Position
        {
            get;
            set;
        }

        List<JieUrl> _urls;
        [DataMember]
        public List<JieUrl> URLs
        {
            get
            {
                if (_urls == null)
                    _urls = new List<JieUrl>();
                return _urls;
            }
            private set
            {
                _urls = value;
            }
        }
    }
}